package com.gpframework.module.order.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.order.mapper.GpProductShelvesMapper;
import com.gpframework.module.order.domain.GpProductShelves;
import com.gpframework.module.order.domain.vo.GpProductShelvesVo;
import com.gpframework.module.order.service.IGpProductShelvesService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpProductShelves
 * @Author gpframework
 * @Date 2023-06-16
 * @Version 1.0.0
 * @Description 货架信息Service业务层处理
 */
@Service
public class GpProductShelvesServiceImpl extends ServiceImpl<GpProductShelvesMapper, GpProductShelves> implements IGpProductShelvesService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-06-16
     * @Param [lqw]
     * @Return List<GpProductShelvesVo>
     */
    @Override
    public List<GpProductShelvesVo> listVo(QueryWrapper<GpProductShelves> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-06-16
     * @Param [id]
     * @Return GpProductShelvesVo
     */
    @Override
    public GpProductShelvesVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

    @Override
    public boolean inserBatch(List<GpProductShelves> list) {

        return this.baseMapper.inserBatch(list);
    }
}
